package com.mark.maven.ddd.infrastructure.customer.mock;

import com.mark.maven.ddd.infrastructure.customer.CustomerServiceAcl;
import com.mark.maven.ddd.infrastructure.customer.req.QueryCustomerRequest;
import com.mark.maven.ddd.infrastructure.customer.resp.QueryCustomerResponse;
import com.mark.maven.ddd.infrastructure.customer.resp.dto.CustomerInfo;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Component;

@Profile(value = {"mock"})
@Component
public class CustomerServiceMock implements CustomerServiceAcl {
    @Override
    public QueryCustomerResponse queryCustomerInfo(QueryCustomerRequest request) {
        return QueryCustomerResponse.builder()
                .code("1")
                .message("success")
                .customerInfo(CustomerInfo.builder().customerNo("mock-001").customerName("mock-name").build())
                .build();
    }
}
